# infra/sentry/backup/crontab
#
# Daily Sentry backup. Times are UTC (TZ set in the Dockerfile).
# Format: m h dom mon dow command
#
# 03:30 UTC = quiet hour for both EU/US active windows. After Sentry's own
# nightly cleanup job (default 01:00) and before any morning maintenance.

30 3 * * * /srv/backup/backup.sh >> /srv/backup/logs/backup-$(date -u +\%Y\%m\%d).log 2>&1

# Heartbeat — write a tiny "alive" marker hourly so operators can confirm
# crond is actually running inside the container. Keeps the last 24h of files.
0  * * * * date -u +%Y-%m-%dT%H:%M:%SZ > /srv/backup/logs/heartbeat.txt
